convert all bytestring readFile/writeFile to use Utility.FileIO
authorJoey Hess <joeyh@joeyh.name>
Fri, 5 Sep 2025 16:05:13 +0000 (12:05 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 5 Sep 2025 16:13:28 +0000 (12:13 -0400)
commit6662b49d35b75066a51852f7a551f74b0b1cf1eb
tree42a6f94d56a19cd39191e10843643f610e17a202
parent2b3c2d62799d1ff2d0d0ea0c047f3c81981cae17
convert all bytestring readFile/writeFile to use Utility.FileIO

This is groundwork for setting the close-on-exec flag when opening
files, which will be done in Utility.FileIO or a similar module using the same
function names. The bytestring library does not set that flag, even though it
could, and IMHO should.

Note that there are many calls to the Prelude's readFile/writeFile/appendFile
still in git-annex, and this does not address those.

Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
Build/Standalone.hs
Remote/Directory/LegacyChunked.hs
Remote/Helper/Special.hs
Utility/FileIO.hs